namespace enhsimgui
{
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Runtime.InteropServices;
    using System.Windows.Forms;

    public class ErrorDialog : Form
    {
        private Button button1;
        private Container components;
        public TextBox errorBox;
        public TextBox exceptionBox;

        public ErrorDialog()
        {
            try
            {
                this.InitializeComponent();
            }
            fault
            {
                base.Dispose(true);
            }
        }

        private void ~ErrorDialog()
        {
            Container components = this.components;
            if (components != null)
            {
                components.Dispose();
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            base.Close();
        }

        protected override void Dispose([MarshalAs(UnmanagedType.U1)] bool flag1)
        {
            if (flag1)
            {
                try
                {
                    this.~ErrorDialog();
                    return;
                }
                finally
                {
                    base.Dispose(true);
                }
            }
            base.Dispose(false);
        }

        private void ErrorDialog_Load(object sender, EventArgs e)
        {
        }

        private void InitializeComponent()
        {
            this.exceptionBox = new TextBox();
            this.button1 = new Button();
            this.errorBox = new TextBox();
            base.SuspendLayout();
            Point point3 = new Point(12, 0x70);
            this.exceptionBox.Location = point3;
            this.exceptionBox.Multiline = true;
            this.exceptionBox.Name = "exceptionBox";
            this.exceptionBox.ReadOnly = true;
            this.exceptionBox.ScrollBars = ScrollBars.Vertical;
            Size size6 = new Size(310, 0x6f);
            this.exceptionBox.Size = size6;
            this.exceptionBox.TabIndex = 0;
            Point point2 = new Point(0xf7, 0xe5);
            this.button1.Location = point2;
            this.button1.Name = "button1";
            Size size5 = new Size(0x4b, 0x17);
            this.button1.Size = size5;
            this.button1.TabIndex = 1;
            this.button1.Text = "OK";
            this.button1.UseVisualStyleBackColor = true;
            this.button1.Click += new EventHandler(this.button1_Click);
            Point point = new Point(12, 12);
            this.errorBox.Location = point;
            this.errorBox.Multiline = true;
            this.errorBox.Name = "errorBox";
            this.errorBox.ReadOnly = true;
            Size size4 = new Size(310, 0x5e);
            this.errorBox.Size = size4;
            this.errorBox.TabIndex = 2;
            base.AcceptButton = this.button1;
            SizeF ef = new SizeF(6f, 13f);
            base.AutoScaleDimensions = ef;
            base.AutoScaleMode = AutoScaleMode.Font;
            Size size3 = new Size(0x14e, 0x108);
            base.ClientSize = size3;
            base.Controls.Add(this.errorBox);
            base.Controls.Add(this.button1);
            base.Controls.Add(this.exceptionBox);
            Size size2 = new Size(350, 300);
            this.MaximumSize = size2;
            base.MinimizeBox = false;
            Size size = new Size(350, 300);
            this.MinimumSize = size;
            base.Name = "ErrorDialog";
            base.ShowIcon = false;
            base.StartPosition = FormStartPosition.CenterParent;
            this.Text = "ErrorDialog";
            base.Load += new EventHandler(this.ErrorDialog_Load);
            base.ResumeLayout(false);
            base.PerformLayout();
        }
    }
}

